<script>
	export default {
		onLaunch: function() {
			this.initLogin();
		},
		onShow: function() {
		},
		onHide: function() {
			console.log('App Hide')
		},
		methods: {
			//登录状态
			async initLogin(){
				const token = uni.getStorageSync('userToken');
				if(token){
					this.$store.commit('setToken', token);
				}
			}
		}
	}
</script>

<style>
/*每个页面公共css */
@import './common/scss/common.scss';
@import './common/scss/iconfont.css';

/* 背景色统一 */
page {
	background-color: #FAFAFA;
	font-size: 24rpx;
}
.page {
	width: 100%;
	height: 100%;
	background-color: #FAFAFA;
}
.page-fill {
	width: 100%;
	height: 100%;
	background-color: #FAFAFA;
	position: absolute;
}
.tabbarHeight{
	height: 100rpx;
}
/* 线条 */
.line-wrap {
	padding: 0upx 35upx;
}
.line {
	height: 1px;
	background-color: #e3e3e3;
}
/* 这是隐藏滚动条的，在单个页面设置不管用 */
::-webkit-scrollbar {
	display: none;
}
.bcolor{
	background-color: #52A9EC;
}
</style>
